package com.dimpt.cloud.userauth.model;

import com.dimpt.cloud.dataservice.aaa.model.Token;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class TokenSO {
    private String id;

    private String createdAt;

    private String updatedAt;

    private String userName;

    private String role;

    public TokenSO(Token token){
        BeanUtils.copyProperties(token, this);
    }
}
